package com.liuqi.business.model;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.liuqi.business.enums.CurrencyExtractTypeEnum;
import com.liuqi.business.enums.SwitchEnum;
import lombok.Data;

@Data
public class CurrencyExtractModelDto extends CurrencyExtractModel{

	private String currencyName;
	private String protocolStr;

	private String extractSwitchStr;
	private String typeStr;
	private String maxDaySwitchStr;


	@JsonIgnore
	private String sortName="extract_switch desc,position";
	@JsonIgnore
	private String sortType="asc";

	public String getExtractSwitchStr() {
		return SwitchEnum.getName(super.getExtractSwitch());
	}

	public String getTypeStr() {
		return CurrencyExtractTypeEnum.getName(super.getType());
	}

	public String getMaxDaySwitchStr() {
		return SwitchEnum.getName(super.getMaxDaySwitch());
	}
}
